//
//  regardingController.m
//  EasyToTesco2.0
//
//  Created by 杨森 on 16/6/21.
//  Copyright © 2016年 EasyToTesco. All rights reserved.
//

#import "regardingController.h"

@interface regardingController ()

@end

@implementation regardingController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
    
    [self.navigationController setNavigationBarHidden:YES animated:animated];
}

- (void)viewWillDisappear:(BOOL)animated {
    [super viewWillDisappear:animated];
    
    [self.navigationController setNavigationBarHidden:NO animated:animated];
    
    
}

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIImageView *image = [[UIImageView alloc] initWithFrame:CGRectMake(0,0, WIDTH, HEIGHT)];
    [self.view addSubview:image];
    image.image = [UIImage imageNamed:@"guanyuwomen-1"];
    
    
    UIButton *backButton = [[UIButton alloc] init];
    [backButton setImage:[UIImage imageNamed:@"guanyuwomen-0"] forState:UIControlStateNormal];
    [backButton addTarget:self action:@selector(regardingBackButtonDidClick) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:backButton];
    [backButton mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.view.mas_left).offset(15);
        make.top.equalTo(self.view.mas_top).offset(40);
        make.width.height.mas_equalTo(15);
    }];
}

- (void)regardingBackButtonDidClick
{
    [self.navigationController popViewControllerAnimated:YES];
}

@end
